package com.example;

import com.example.myRule.MyRandomRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author およそ神
 * @version JDK 1.8
 */
@SpringBootApplication
@EnableEurekaClient//Eureka客户端
//@RibbonClient(name = "SPRINGCLOUD-PROVIDER-PERSON",configuration = MyRandomRule.class)//开启负载均衡,并指定自定义的规则
public class ConsumerApplication8888 {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerApplication8888.class, args);
    }

}
